package com.guapi.util.request;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * @author 瓜皮哦
 */
public interface SelfRequest extends Serializable {
    String FIELD_USER_ID="userId";
    String FIELD_LOCALE="locale";
    String FIELD_ROLE_ID="roleId";
    String FIELD_LOGIN_ID="loginId";

    String FIELD_ALL_ROLE_ID="roleIds";

    String EMP_CODE="employeeCode";

    void setUsername(String userName);

    String getUsername();

    Long getUserId();

    <T> T getAttribute(String name);

    Map<String,Object> getAttributeMap();

    Set<String> getAttributeNames();

    void setAttribute(String name,Object value);

    Long getRoleId();

    void setRoleId(Long roleId);

    Long[] getAllRoleId();

    void setAllRoleId(Long[] roleIds);

    void setUserId(Long accountId);

    String getEmployeeCode();

    void setEmployeeCode(String employeeCode);


}
